/*
 * MenuItem.h
 *
 *  Created on: 2011-03-30
 *      Author: tmacyszyn
 */

#ifndef MENUITEM_H_
#define MENUITEM_H_

#include <FBase.h>
#include <FGraphicsOpengl.h>

#define MENU_ITEM_WIDTH 1.33
#define MENU_ITEM_HEIGHT 0.2
#define MENU_ITEM_GAP 0.1

using namespace Osp::Base;
using namespace Osp::Graphics::Opengl;

class MenuItem {
public:
	MenuItem(String title, void (*OnClickHandler)(void*), GLuint textsTexture)
	{
		this->title = title;
		this->OnClickHandler = OnClickHandler;
		this->textsTexture = textsTexture;
	}
	virtual ~MenuItem();

	void Render(float parentX, float parentY);

	void CleanUp();

	void (*OnClickHandler)(void*);
	float posX;
	float posY;
	static float width;
	static float height;
	static float gap;

private:
	String title;
	GLuint textsTexture;
};

#endif /* MENUITEM_H_ */
